class Pet:
    name = ""
    age = 0
    pet_t = ""

    def __init__(self,name,age,pet_t):
        self.name=name
        self.age=age
        self.pet_t=pet_t
    def display(self):
        print(f"名字: {self.name}, 年龄: {self.age}, 是一只{self.pet_t}, 叫了一声")
class Dog(Pet):
    color = ""
    def __init__(self,name,age,pet_t,color):

        Pet.__init__(self,name,age,pet_t)
        self.color=color

    def Dogcolor(self):
        print(f"这是一只{self.color}的狗")
    def display(self):
        print(f"名字: {self.name}, 年龄: {self.age}, 是一只{self.pet_t}, 汪了一声")


if __name__ == '__main__':
    bird = Pet("小鸟",1,"鸟")
    huang = Dog("大黄",3,"狗","黑色")
    bird.display()
    huang.display()